<small>
  <% unless flash[:notice].blank? %>
    <div id="notice" class="notice">
      <%= (flash[:notice] || flash.now[:notice]).untaint %>
      <%= link_to_function icon_image_tag('delete.png'), "#{update_page {|page| page[:notice].remove}}" %>
    </div>
  <% end %>

  <% unless flash[:error].blank? %>
    <div id="error" class="error">
      <%= (flash[:error] || flash.now[:error]).untaint %>
      <%= link_to_function icon_image_tag('delete.png'), "#{update_page {|page| page[:error].remove}}" %>
    </div>
  <% end %>
</small>